
package com.lbssoft.datalink.model;

import java.util.Date;
import java.util.LinkedHashMap;
import java.util.Map;
/**
 * <b>采集中心推送的位置信息</b>
 * @version 1.1.4
 * @author riven
 */
public class Position extends BaseMsg {

	/**
	 * 位置数据
	 */
	private static final long serialVersionUID = 1L;

	public Position() {
		super();
		setType(MsgType.POSITION);
	}

	private long id;

	private long deviceId;

	private String deviceUUID;

	// 设备时间
	private Date time;

	private boolean valid;

	// 经度
	private double latitude;
	// 纬度
	private double longitude;
	// 海拔
	private double altitude;
	// 速度
	private double speed;
	// 方向
	private double course;

	private Map<String, Object> attributes = new LinkedHashMap<>();

	private double accuracy;

	private Object network;

	private int mode;

	public Map<String, Object> getAttributes() {
		return attributes;
	}

	public void setAttributes(Map<String, Object> attributes) {
		this.attributes = attributes;
	}

	public Date getTime() {
		return time;
	}

	public void setTime(Date time) {
		this.time = time;
	}

	public double getLatitude() {
		return latitude;
	}

	public void setLatitude(double latitude) {
		this.latitude = latitude;
	}

	public double getLongitude() {
		return longitude;
	}

	public void setLongitude(double longitude) {
		this.longitude = longitude;
	}

	public double getAltitude() {
		return altitude;
	}

	public void setAltitude(double altitude) {
		this.altitude = altitude;
	}

	public double getSpeed() {
		return speed;
	}

	public void setSpeed(double speed) {
		this.speed = speed;
	}

	public double getCourse() {
		return course;
	}

	public void setCourse(double course) {
		this.course = course;
	}

	public long getId() {
		return id;
	}

	public void setId(long id) {
		this.id = id;
	}

	public Object getNetwork() {
		return network;
	}

	public void setNetwork(Object network) {
		this.network = network;
	}

	public boolean getValid() {
		return valid;
	}

	public void setValid(boolean valid) {
		this.valid = valid;
	}

	public long getDeviceId() {
		return deviceId;
	}

	public void setDeviceId(long deviceId) {
		this.deviceId = deviceId;
	}

	public double getAccuracy() {
		return accuracy;
	}

	public void setAccuracy(double accuracy) {
		this.accuracy = accuracy;
	}

	public int getMode() {
		return mode;
	}

	public void setMode(int mode) {
		this.mode = mode;
	}

	public String getDeviceUUID() {
		return deviceUUID;
	}

	public void setDeviceUUID(String deviceUUID) {
		this.deviceUUID = deviceUUID;
	}
}